<% content_for :menu do %>
<%= render :partial => "layouts/menu", :locals => {:logueuh => true} %>
<% end %>


<% content_for :filAriane do %>
<div id="fil_ariane">
	<%= link_to 'Accueil', :controller => :supervision %>
	&gt;
	Liste des logs
</div>
<% end %>

<h1>Liste des logs</h1>
<div class="table_machine">
<table>
  <tr>
    <th>Id</th>
    <th>Utilisateur</th>
    <th>Action</th>
<th class="cellbouton"></th>
  </tr>

<% @logs.each do |log| %>
  <tr>
    <td><%=h log.id %></td>
    <td>    	
    	<% if @user = User.find(log.utilisateur_id) %>
    		<%= @user.prenom.to_s+" "+@user.name.to_s %>
    	<% end %>
    </td>
    <td><%=h log.action %></td>
    <td>
		<span class="bouton"><%= link_to 'Voir', log %></span>
		<!-- <span class="bouton"><%= link_to 'Modifier', edit_log_path(log) %></span>
		<span class="delete"><%= link_to 'Supprimer', log, :confirm => 'Etes vous sûr ?', :method => :delete %></span> -->
	</td>
  </tr>
<% end %>
</table>
</div>

<br />


<span class="export"><%= link_to 'Exporter', :controller => "logs", :action => "export_to_csv"  %></span>
<span class="undo"><%= link_to 'Retour à l\'accueil', :controller => :supervision %>